#ifndef _CARBUS_MAZDA_H_
#define _CARBUS_MAZDA_H_	

#include "def.h"

	#ifndef		_CARBUS_MAZDA_GLOBAL_
		#define		CARBUS_MAZDA_GLOBAL		extern	
	#else
		#define		CARBUS_MAZDA_GLOBAL	
	#endif
	

#define CAR_ACC_ID    	0x050
#define CAR_SPEED_ID		0x202
#define CAR_DOOR_ID			0x43E	
#define CAR_LIGHT_ID		0x091	
#define CAR_BRAKE_ID		0x09F
#define	CAR_TURN_ID     0x09A
#define CAR_SAFEBELT_ID 0x340
#define CAR_GEAR_ID	    0X131	
#define CAR_GEAR_HAND_ID    0X228

#define CAR_COOLTEMP_ID	    0X420		
#define CAR_VPWR_ID	    0X45C		

#define CAR_CRUISECONTROL_ID	    0X165 		

#define CAR_MZDCONNECT_4F2   0x4F2	
#define CAR_MZDCONNECT_4F3   0x4F3	
#define CAR_MZDCONNECT_4F5   0x4F5
#define CAR_MZDCONNECT_3D0   0x3D0		
#define CAR_MZDCONNECT_3D1   0x3D1
#define CAR_MZDCONNECT_3D2   0x3D2
#define CAR_OBDII_40A   0x40A		
#define CAR_BSD_ID           0x47B	
#define CAR_BSD_SINJET_ID    0x47C	

typedef struct _CAN_MSG_INFO{
	BOOL haveReceiveCan;
	BOOL IsWorkOnCar;
	u8 enterDemoMode;
	
	u8 AccStatus;
	u32 CanActiveTimer;
	u16 speed;//??
	u16 rpm; //??

	BOOL bReverseGear;

	BOOL bTurnLightLeft;//??
	BOOL bTurnLightRight;//??
	BOOL bSteeringKey;//??	
	u8 carAlarmType; 

	u8 MZDHeightControl;
	
	BOOL bNoAllowAccessCarTire;
	
	u32 carTireCheckTime;
	u8 carTireCheckStatus;
	BOOL bCarTireCheckEnble;
	BOOL bCarBackSignal;
	u32 carBackSignalDelayTime;
	BOOL bHaveCanGateway;
	BOOL bHaveCameraSignal;
	
	BOOL bHaveCheckCarVin;
}CAN_MSG_INFO;

CARBUS_MAZDA_GLOBAL CAN_MSG_INFO CANMsgInfo;

CARBUS_MAZDA_GLOBAL void carInfoFreeIdleProc(void);
#endif


